/**
 * 
 */
package org.jpxx.sec.web.admin;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Jun Li lijun@jpxx.org (http://www.jpxx.org)
 * @version 1.0.0 $ org.jpxx.sec.web.admin.LoginController.java $ $ Date:
 *          2009-5-9 $
 */
@Controller
@RequestMapping("/admin/login.htm")
public class AdminLoginController {

	private Logger log = Logger.getLogger(AdminLoginController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String login(ModelMap map, HttpServletRequest request,
			HttpServletResponse response) {

		log.info("/admin/login.htm");
		
		map.addAttribute("description",
				"Description: This is a management framework for Admin login.");
		map.addAttribute("title", "四川大学软件学院网站——控制面板");

		return "admin/shared";
	}
}
